#include "player.h"

Player::Player(Map* m)
{
  map = m;
  ID = 0;
}

Player::Player(Map* m, Keyboard* k)
{
  map = m;
  K = k;
  posX = map->getPosX();
  posY = map->getPosY();
  ID = 0;
}

int Player::getFore()
{
  return COLOR_BLACK;
}

int Player::getBack()
{
  return COLOR_GREEN;
}

char Player::getSymbol()
{
  return '@';
}

bool Player::isPlayer()
{
  return true;
}

bool Player::isCreature()
{
  return true;
}

bool Player::isMonster()
{
  return false;
}

int Player::getStatus()
{
  return status;
}

void Player::makeMove()
{
  status = K->makeMove();
  posX = map->getPosX();
  posY = map->getPosY();
}

int Player::getID()
{
  return ID;
}

int Player::getX()
{
  return posX;
}

int Player::getY()
{
  return posY;
}
